package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName absorbed_target
 */
@TableName(value = "absorbed_target")
@Data
public class AbsorbedTarget implements Serializable {
    /**
     * 专注id
     */
    @TableId
    private Long absorbedId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 子任务id
     */
    private Long childTargetId;

    /**
     * 开始时间
     */
    private LocalDateTime startDateTime;

    /**
     * 结束时间
     */
    private LocalDateTime endDateTime;

    /**
     * 专注时长
     */
    private String absorbedDuration;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}